import CustomerInfoMaintenanceComp from 'containers/customer-info-maintenance/customer-info-maintenance'
import CustomerBankAccount from 'containers/customer-info-maintenance/customer-bank-account'
import CustomerAssignCompany from 'containers/customer-info-maintenance/customer-assign-company'

//客户主体业务数据
const CustomerInfoMaintenance = {
  key: 'customer-info-maintenance',
  icon: 'tags',
  company: true,
  admin: false,
  subMenu: [
    //集团客户信息维护
    {
      key: 'customer-tenant-maintenance',
      url: '/main/customer-info-maintenance/customer-tenant-maintenance',
      components: CustomerInfoMaintenanceComp,
      parent: 'customer-info-maintenance',
      children:{
        //集团客户信息维护-银行账户
        customerBankAccount: {
          key: 'customer-bank-account-tenant',
          url: '/main/customer-info-maintenance/customer-tenant-maintenance/:id/customer-bank-account-tenant/:source',
          components: CustomerBankAccount,
          parent: 'customer-bank-account-tenant'
        },
        //集团客户信息维护-公司分配
        customerAssignCompany: {
          key: 'customer-assign-company-tenant',
          url: '/main/customer-info-maintenance/customer-tenant-maintenance/:id/customer-assign-company-tenant',
          components: CustomerAssignCompany,
          parent: 'customer-assign-company-tenant'
        },
      },
    },
    //公司客户信息维护
    {
      key: 'customer-company-maintenance',
      url: '/main/customer-info-maintenance/customer-company-maintenance',
      components: CustomerInfoMaintenanceComp,
      parent: 'customer-info-maintenance',
      children:{
        //公司客户信息维护-银行账户
        customerBankAccount: {
          key: 'customer-bank-account-company',
          url: '/main/customer-info-maintenance/customer-company-maintenance/:id/customer-bank-account-company/:source',
          components: CustomerBankAccount,
          parent: 'customer-bank-account-company'
        },
        //公司客户信息维护-公司分配
        customerAssignCompany: {
          key: 'customer-assign-company-company',
          url: '/main/customer-info-maintenance/customer-company-maintenance/:id/customer-assign-company-company',
          components: CustomerAssignCompany,
          parent: 'customer-assign-company-company'
        },
      },
    },
  ],
};

export default CustomerInfoMaintenance
